<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>添加按钮</title>
    <script>
        window.onload = function () {
            document.getElementById("one").onclick = function () {
                var uEle = document.getElementById("uid");
                var textNode = document.createTextNode("深圳");
                var liEle = document.createElement("li");
                liEle.appendChild(textNode);
                uEle.appendChild(textNode);
            }
        }
    </script>
</head>
<body>
    <ul id="uid">
        <input id="one"  value="添加" type="button" />
        <li>北京</li>
        <li>上海</li>
        <li>广州</li>
    </ul>
</body>
</html>